#!/bin/bash

./malloc1 1024 4096 & 
pid=`ps -aux | grep malloc1 | awk -F" " '{print $2}' | grep -v grep`

sleep 1

echo "trace $pid"
python3 /data/origin/bcc/tools/trace.py -U  -p $pid t:syscalls:sys_enter_brk
